package com.kung.qvs.entity;

import android.graphics.drawable.Drawable;

import com.kung.qvs.R;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Transient;
import org.greenrobot.greendao.annotation.Unique;
import org.greenrobot.greendao.annotation.Generated;

import java.io.Serializable;

import me.goldze.mvvmhabit.utils.Utils;

/**
 * 粽子实体类
 */
@Entity
public class ProductBean implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id(autoincrement = true)
    private Long _id;
    @Unique
    private String productId;
    private String productName;
    private String parentId;
    private String typeName;
    private String unit;
    private String weight;
    private String price;
    private int orderNum;
    private String deptId;
    private String remark;
    @Transient
    private String index;
    @Transient
    private String indexName;
    @Transient
    private boolean isSelected = false; //是否被选中
    @Transient
    private int textColorName = Utils.getContext().getResources().getColor(R.color.trash_type_normal);
    @Transient
    private int textColorPrice = Utils.getContext().getResources().getColor(R.color.trash_type_price_normal);
    @Transient
    private Drawable bgDrawable = Utils.getContext().getResources().getDrawable(R.drawable.shape_trash_type_corner, null);


    @Generated(hash = 2144750234)
    public ProductBean(Long _id, String productId, String productName, String parentId, String typeName, String unit,
            String weight, String price, int orderNum, String deptId, String remark) {
        this._id = _id;
        this.productId = productId;
        this.productName = productName;
        this.parentId = parentId;
        this.typeName = typeName;
        this.unit = unit;
        this.weight = weight;
        this.price = price;
        this.orderNum = orderNum;
        this.deptId = deptId;
        this.remark = remark;
    }
    @Generated(hash = 669380001)
    public ProductBean() {
    }
    

    public Long get_id() {
        return this._id;
    }
    public void set_id(Long _id) {
        this._id = _id;
    }
    public String getProductId() {
        return this.productId;
    }
    public void setProductId(String productId) {
        this.productId = productId;
    }
    public String getProductName() {
        return this.productName;
    }
    public void setProductName(String productName) {
        this.productName = productName;
    }
    public String getParentId() {
        return this.parentId;
    }
    public void setParentId(String parentId) {
        this.parentId = parentId;
    }
    public String getTypeName() {
        return this.typeName;
    }
    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }
    public String getUnit() {
        return this.unit;
    }
    public void setUnit(String unit) {
        this.unit = unit;
    }
    public String getWeight() {
        return this.weight;
    }
    public void setWeight(String weight) {
        this.weight = weight;
    }
    public String getPrice() {
        return this.price;
    }
    public void setPrice(String price) {
        this.price = price;
    }
    public int getOrderNum() {
        return this.orderNum;
    }
    public void setOrderNum(int orderNum) {
        this.orderNum = orderNum;
    }
    public String getDeptId() {
        return this.deptId;
    }
    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getIndex() {
        return index;
    }

    public void setIndex(String index) {
        this.index = index;
    }

    public String getIndexName() {
        return indexName;
    }

    public void setIndexName(String indexName) {
        this.indexName = indexName;
    }

    public boolean isSelected() {
        return isSelected;
    }

    public void setSelected(boolean selected) {
        isSelected = selected;
    }

    public int getTextColorName() {
        return textColorName;
    }

    public void setTextColorName(int textColorName) {
        this.textColorName = textColorName;
    }

    public int getTextColorPrice() {
        return textColorPrice;
    }

    public void setTextColorPrice(int textColorPrice) {
        this.textColorPrice = textColorPrice;
    }

    public Drawable getBgDrawable() {
        return bgDrawable;
    }

    public void setBgDrawable(Drawable bgDrawable) {
        this.bgDrawable = bgDrawable;
    }
}
